package roborally.model.evaluables.conditions;

import roborally.model.evaluables.Evaluable;
import roborally.model.evaluables.RobotCondition;
import roborally.model.*;

public class AtItem extends RobotCondition implements Evaluable{
	public AtItem(Robot robot) throws IllegalArgumentException {
		super(robot);
	}
	
	/**
	 * @return Returns true if there is at least one item present on the field the robot is located on. If not, false is returned.
	 */
	@Override
	public boolean evaluate(){
		return getRobot().getField().hasItem();
	}

}